package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author: xrl
 * @Date: 2022/10/13  12:43
 * @Version 1.0
 */
public interface WmMaterialService extends IService<WmMaterial> {

    /**
     * 图片上传
     * @param multipartFile
     * @return
     */
    public ResponseResult upload(MultipartFile multipartFile);

    /**
     * 素材列表查询
     */
    public ResponseResult getList(@RequestBody WmMaterialDto dto);

    /**
     * 删除素材
     */
    ResponseResult deleteMaterial(Integer id);
}
